package com.um.springboot.starter.orm.service;


import com.um.springboot.starter.orm.entity.BaseEntity;
import com.um.springboot.starter.orm.entity.Response;
import com.um.springboot.starter.orm.entity.TreeNode;

import java.util.List;

/**
 * @author 邓南辉
 * @date 2020/2/3
 * @copyright 广州优匠科技有限公司
 */
public interface TreeService<N extends TreeNode,E extends BaseEntity> extends BaseEntityService<E>{

    List<N> getTree(String parentId);

    Boolean deleteNode(String id);

    Boolean deleteNodes(List<String> ids);

    Boolean moveNode(String id,String parentId);


}
